package com.cloudkinto.service.channel;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.entity.LogisticsAccountDo;
import com.cloudkinto.vo.channel.la.LaCustomerAddReq;
import com.cloudkinto.vo.channel.la.LaPageRes;
import com.cloudkinto.vo.channel.la.LaSwitchReq;
import com.cloudkinto.vo.channel.la.LaUpdateReq;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * service接口
 * </p>
 *
 * @author hua
 * @since 2024-10-29
 */
public interface LogisticsAccountService extends IService<LogisticsAccountDo> {

    SingleResult addInit();

    Object addLa(LaCustomerAddReq req, Long userId, Long tenantId);

    SingleResult updateInit(Long id);

    Object update(LaUpdateReq updateVo, Long userId);

    int delete(Long id, Long userId);

    Object detail(Long id);

    SingleResult pageInit();

    List<LaPageRes> getList(Map<String, Object> map);

    PageResult getListPage(Map<String, Object> map);

    void switchAccount(LaSwitchReq req, Long userId);
}
